import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/services.dart';
import 'package:member_center_sdk_example/pages/members/login/pwd/state.dart';
import 'package:member_center_sdk_example/pages/members/login/state.dart';

class PwdLoginConnector extends ConnOp<MemberLoginState, PwdLoginState> {
  PwdLoginState _subState = PwdLoginState();

  @override
  PwdLoginState get(MemberLoginState state) {
    _subState.userNameController.text = state.defaultUserName;
    return _subState;
  }

  @override
  void set(MemberLoginState state, PwdLoginState subState) {
    _subState = subState;
  }
}
